const path=require("path");
//配置文件。集中所有需要修改的配置。
const config={
    http_server_port:"3104",
    mongoServer:"mongodb://localhost:27017",
    dbName:"kmust_v5",
    parse_dashboard_appName:"物料管理1.0",
    isCheckTeacherOrAdmin:true, //是否检查使用接口的是教师或管理员。设为false方便测试
    uploads_dir:path.join(__dirname,"..","..","uploads"), //存放上传文件告的目录
    tmp_uploads_dir:path.join(__dirname,"..","..","tmp_uploads"), //存放临时上传的文件的目录
    tmp_excel_dir:path.join(__dirname,"..","..","tmp_excel"), //存放临时上传的excel文件的目录
    fileserver:"qiniu", //"fake","qiniu","host",
    xcx_qiniu_upload_url:"https://up-z0.qiniup.com",
    qiniu_zone:"z0",
    qiniu_upload_url:"https://up-z0.qiniup.com",
    qiniu_domain: "https://file-seu.jiaozuoye.online/",
    qiniu_bucket:"file-seu",
    is_open_classname:true, //学生用户注册是否需要班级信息字段
    is_open_weixin_register:true,//是否允许微信注册
    is_use_xcx:true,//是否使用小程序
    supportUrl:'http://support.jiaozuoye.online', // 支撑平台公共平台地址
    college:'个人实验',// 查询教师名下的实验箱需要配置的平台
    wechat_AppID:"wx181cdcdcb1c9bbcb",
    wechat_AppSecret:"f8f6a51a672af5ea57a03b1ad0e4bfa7",
    // xcx_AppID:"wxd58927ba927219a2",
    // xcx_AppSecret:"5f207515fc777f2384b656e2f339562e",
    xcx_AppID:"wx529dfecb42b100b1",
    xcx_AppSecret:"80320a5ba54a0b225aef3c949192afd7",
    categorys:["个人实验箱","模块","仪器","芯片","附件","书籍"],
    //排课签到
    domain:'http://192.168.3.108:4000',//服务器的url
    is_test_mode:true,//测试模式，在测试模式下打开测试的功能
    template_file:"users.xlsx",
    // cabinetServerUrl: "192.168.3.153:8001"
    cabinetServerUrl: "106.75.226.156:8080"//昆工地址
};
console.log("config",config);
module.exports=config;